package com.sxsihe.heartmate;

import android.app.Activity;
import android.content.Intent;
import android.media.Image;
import android.os.Bundle;
import android.view.View;
import android.widget.ImageView;
import android.widget.LinearLayout;
import android.widget.TextView;

public class UserInfoFeedbackActivity extends Activity {

    ImageView back_icon;
    public void onCreate(Bundle bundle){
        super.onCreate(bundle);
         setContentView(R.layout.userinfo_feedback);
        back_icon = (ImageView)findViewById(R.id.back_icon);
        back_icon.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                finish();
                overridePendingTransition(R.anim.in_left, R.anim.out_right);
            }
        });
//        username = (TextView)findViewById(R.id.username);
//        name_layout = (LinearLayout)findViewById(R.id.name_layout);
//        name_layout.setOnClickListener(new View.OnClickListener() {
//            @Override
//            public void onClick(View v) {
//                Intent intent = new Intent();
//                intent.setClass(UserInfoFeedbackActivity.this, UserInfoInputActivity.class);
//                intent.putExtra("type", "name");
//                intent.putExtra("value",username.getText());
//                startActivityForResult(intent, 0);
//                int version = Integer.valueOf(android.os.Build.VERSION.SDK);
//                if(version  >= 5) {
//                    overridePendingTransition(R.anim.in_right, R.anim.out_left);
//                 }
//            }
//        });
    }


    public void onBackPressed() {
        super.onBackPressed();
        overridePendingTransition(R.anim.in_left, R.anim.out_right);
    }
}
